package com.origin.oss.enums;

import com.origin.oss.constant.OssConstant;
import lombok.AllArgsConstructor;

/**
 * @author origin
 */
@AllArgsConstructor
public enum StorageType {

    LOCAL(0, OssConstant.OssType.LOCAL, "本地存储"),
    ALIYUN(1, OssConstant.OssType.ALI, "阿里云OSS对象存储"),
    HUA_WEI(2, OssConstant.OssType.HUAWEI, "华为云对象存储"),
    FAST_DFS(3, OssConstant.OssType.FAST_DFS, "fastDFS集群存储"),
    MINIO(4, OssConstant.OssType.MINIO, "minio存储"),
    QINIUYUN_KODO(5, OssConstant.OssType.QINIU, "七牛云KODO对象存储");


    private final int code;
    private final String identity;
    private final String name;

    public int getCode() {
        return code;
    }

    public String getIdentity() {
        return identity;
    }

    public String getName() {
        return name;
    }

}
